package com.andy;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public class tst {
    
    public static void main(String[] args){
        List<Integer> numbers = Arrays.asList(3, 2, 2, 3, 7, 3, 5);

        List<Integer> result = numbers.stream()
                //.filter(i -> i>=3)
                .sorted()
                //.map(i -> i * i)
                //.limit(3)
                .collect(Collectors.toList());

        System.out.println(result);
    }


    
}
